// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//引入elementui的依赖
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//引入axios，在main.js中引入，都可以在所有vue界面中直接使用
import axios  from "axios";
axios.defaults.baseURL = "http://localhost"

Vue.config.productionTip = false
Vue.use(ElementUI);//将elementui组件加载到vue中



/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
